package com.monkey.model.admin;

import com.monkey.core.ErrorCode;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/2/5.
 */
public class AdminLoginData {
    private int code;
    private String msg;
    private String token;
    private Admin admin;

    public AdminLoginData(int code) {
        this(code, null, null);
    }

    public AdminLoginData(int code, String token, Admin admin) {
        this.code = code;
        this.msg = ErrorCode.getMsg(code);
        this.token = token;
        this.admin = admin;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getToken() {
        return token;
    }

    public Admin getAdmin() {
        return admin;
    }
}
